package com.kaishengit.service;

import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.dao.BooktypeDao;
import com.kaishengit.entity.Booktype;

@Named
@Transactional
public class BooktypeService {
	@Inject
	BooktypeDao booktypeDao;
	
	public Booktype findByProperty(String name, String value) {
		return booktypeDao.findByProperty(name, value);
	}

	public void save(Booktype booktype) {
		booktypeDao.save(booktype);
	}

	public Booktype findById(Integer id) {
		return booktypeDao.findById(id); 
	}

}
